ThinkPHP5


think\paginator\driver\Bootstrap
library\think\paginator\driver\Bootstrap.php at line 16

Class Bootstrap

Paginator
└─Bootstrap

public class Bootstrap
extends Paginator


Method Summary
protected string

getPreviousButton(string text)

上一页按钮

protected string

getNextButton(string text)

下一页按钮

protected string

getLinks()

页码按钮

mixed

render()

渲染分页html

protected string

getAvailablePageWrapper(string url, int page)

生成一个可点击的按钮

protected string

getDisabledTextWrapper(string text)

生成一个禁用的按钮

protected string

getActivePageWrapper(string text)

生成一个激活的按钮

protected string

getDots()

生成省略号按钮

protected string

getUrlLinks(array urls)

批量生成页码按钮.

protected string

getPageLinkWrapper(string url, int page)

生成普通页码按钮

Methods inherited from think\Paginator
__construct, appends, buildFragment, currentPage, fragment, getCurrentPage, getCurrentPath, getUrlRange, hasPages, lastPage, listRows, make, render, setCurrentPage, total, url

Method Detail

library\think\paginator\driver\Bootstrap.php at line 24

getPreviousButton

protected string getPreviousButton(string text)

上一页按钮


library\think\paginator\driver\Bootstrap.php at line 43

getNextButton

protected string getNextButton(string text)

下一页按钮


library\think\paginator\driver\Bootstrap.php at line 58

getLinks

protected string getLinks()

页码按钮


library\think\paginator\driver\Bootstrap.php at line 110

render

public mixed render()

渲染分页html


library\think\paginator\driver\Bootstrap.php at line 138

getAvailablePageWrapper

protected string getAvailablePageWrapper(string url, int page)

生成一个可点击的按钮


library\think\paginator\driver\Bootstrap.php at line 149

getDisabledTextWrapper

protected string getDisabledTextWrapper(string text)

生成一个禁用的按钮


library\think\paginator\driver\Bootstrap.php at line 160

getActivePageWrapper

protected string getActivePageWrapper(string text)

生成一个激活的按钮


library\think\paginator\driver\Bootstrap.php at line 170

getDots

protected string getDots()

生成省略号按钮


library\think\paginator\driver\Bootstrap.php at line 181

getUrlLinks

protected string getUrlLinks(array urls)

批量生成页码按钮.


library\think\paginator\driver\Bootstrap.php at line 199

getPageLinkWrapper

protected string getPageLinkWrapper(string url, int page)

生成普通页码按钮


ThinkPHP5